<% form_for(:user,:url=>{:action=>"register",:id=>@user.id}) do |f|%>
<%= f.hidden_field(:id)%>
<%= f.hidden_field(:security_string)%>
<div>邮件地址：<%= f.text_field(:email)%></div>
<div>密码：<%= f.password_field(:password)%></div>
<div>再输入一遍密码：<%= f.password_field(:password_again)%></div>
<%= f.submit("注册")%>
<%end%>
